import request from '@/utils/request'

export default {
  // getPendingTasksList(pageNum, pageSize, status, dateRange) {
  //   if (dateRange===null || dateRange===undefined) {
  //     dateRange=[];
  //   }
  //   return request({
  //     url: `/pendingTasks/queryPendingTasks/${pageNum}/${pageSize}/${status}`,
  //     method: 'POST',
  //     data: dateRange
  //   })
  // },

  findAll(){
    return request({
      url: `/income-proof-applications/findAll`,
      method: 'GET',
    })
  },

  findById(ProofID){
    return request({
      url: `/income-proof-applications/findById/${ProofID}`,
      method: 'GET',
    })
  },

  save(){
    return request({
      url: `/income-proof-applications/save`,
      method: 'POST',
    })
  },

  update(ProofID){
    return request({
      url: `/income-proof-applications/update/${ProofID}`,
      method: 'PUT',
    })
  },

  deleteById(ProofID){
    return request({
      url: `/income-proof-applications/deleteById/${ProofID}`,
      method: 'DELETE',
    })
  },

  // createIncomeProofApplication(application){
  //   return request({
  //     url: `/income-proof-applications/createIncomeProofApplication`,
  //     method: 'POST',
  //     data: application,
  //   })
  // },


  // getIncomeProofApplications() {
  //   return request({
  //     url: `/income-proof-applications/getIncomeProofApplications/${id}/${status}`,
  //     method: 'GET',
  //   })
  // },

  // getIncomeProofApplicationById(id) {
  //   return request({
  //     url: `/income-proof-applications/getIncomeProofApplicationById/${id}`,
  //     method: 'GET',
  //   })
  // },





  // updatePendingTasksById(id, status, approvalInfo) {
  //   approvalInfo.approvalResult = Number(approvalInfo.approvalResult)
  //   return request({
  //     url: `/pendingTasks/updatePendingTasksById`,
  //     method: 'put',
  //     data: approvalInfo,
  //     params: {
  //       id: id,
  //       status: status,
  //     }
  //   })
  // },

//   getLeadersAll(deptId)
// {
//   console.log("----->>>", deptId)
//   return request({
//     url: `/pendingTasks/getLeadershipAll`,
//     method: 'get',
//     params: {deptId: deptId}
//   })
// }
}
